package com.yimils.core.goods.serivce;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yimils.core.goods.dto.SupplierAddReq;
import com.yimils.core.goods.dto.SupplierUpdateReq;
import com.yimils.core.goods.entity.SupplierEntity;
import com.yimils.core.goods.vo.SupplierRes;

import java.util.List;

public interface SupplierService extends IService<SupplierEntity> {

    Boolean saveSupplier(SupplierAddReq supplierAddReq);

    Boolean updateSupplier(SupplierUpdateReq supplierUpdateReq);

    Boolean deleteSupplier(List<Long> supplierIds);

    List<SupplierRes> listSupplier();

    Boolean audit(Long supplierId, String auditState);

    Boolean isAble(Long supplierId, String isAbleState);
}
